package cn.com.qtgl.apis.notification.model.input;

import cn.melonlib.cores.commons.model.entity.StringIdEntity;
import cn.melonlib.cores.model.anno.ModelComment;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.List;

@Data
@EqualsAndHashCode(callSuper = true)
@ModelComment("消息提醒对象")
public class NotificationInput extends StringIdEntity {

    @ModelComment(value = "消息标题",required = true)
    private String name;

    @ModelComment("消息正文，纯文本格式")
    private String content;

    @ModelComment("消息正文，富文本格式")
    private String body;

    @ModelComment("消息正文,html格式")
    private String html;

    @ModelComment("消息摘要")
    private String contentAbstract;

    @ModelComment(value = "通知推送渠道，渠道为email、sms等等",required = true)
    private List<String> channels;

    @ModelComment("外部推送邮件")
    private List<String> emails;

    @ModelComment("外部(电话/手机)号码")
    private List<String> phones;

    @ModelComment("收信人列表")
    private List<UserInput> users;

    @ModelComment("收信对象userFilters")
    private List<String> userFilters;

    @ModelComment("标签，用','分割")
    private String tags;
}
